import requests


def test_baidu():
    # 发送API请求

    response = requests.get('https://www.baidu.com')

    # 判断响应状态码及响应文本是否符合预期结果。

    assert response.status_code == 200

    assert "百度一下" in response.text